const tokenKey = "xx-mall-c-token";

export function setToken(token) {
  localStorage.setItem(tokenKey, token);
}
export function setUid(uid) {
  localStorage.setItem("xx-mall-c-uid", uid);
}
export function getUid() {
  // localStorage.setItem("xx-mall-c-uid", uid);
  return localStorage.getItem("xx-mall-c-uid");
}

export function getToken() {
  return localStorage.getItem(tokenKey);
}
export function removeToken() {
  localStorage.removeItem(tokenKey);
}
